package com.cls.business.service;

import com.cls.business.entity.ExpertGroup;

import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 *  Service接口
 *
 * @author wandering
 * @date 2020-11-30 16:35:23
 */
public interface IExpertGroupService extends IService<ExpertGroup> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param expertGroup expertGroup
     * @return PageInfo<ExpertGroup>
     */
    PageInfo<ExpertGroup> findExpertGroups(QueryRequest request, ExpertGroup expertGroup);

    /**
     * 查询（所有）
     *
     * @param expertGroup expertGroup
     * @return List<ExpertGroup>
     */
    List<ExpertGroup> findExpertGroups(ExpertGroup expertGroup);

    /**
     * 新增
     *
     * @param expertGroup expertGroup
     */
    void createExpertGroup(ExpertGroup expertGroup);

    /**
     * 修改
     *
     * @param expertGroup expertGroup
     */
    void updateExpertGroup(ExpertGroup expertGroup);

    /**
     * 删除
     *
     * @param ids ids
     */
    void deleteExpertGroups(String[] ids);


    int modifyExpertGroup(ExpertGroup expertGroup, Long expertId);

    List<ExpertGroup> findByTopicIds(Set<Long> topicIds);
}
